<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="打印表格(函数).js" type="text/javascript"></script>
    <style>
        *{margin: 0px;padding: 0px}
    </style>
</head>
<body>
    <script type="text/javascript">
        //定义正则表达式对象
        var reg = new RegExp('a','i');
        //定义要检测的字符串
        var str = 'cdsfdvddscAQVDC';
        var result = reg.test(str);
        console.log(result);


    </script>

</body>
</html>